package com.prueba.client;

import java.util.ArrayList;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

public class RPCService implements RPCInterfaceAsync{

	RPCInterfaceAsync service = (RPCInterfaceAsync) GWT.create(RPCInterface.class);
	ServiceDefTarget endpoint = (ServiceDefTarget) service;
	
	public RPCService()
	{
		endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + "RPCService");
	}
	
	public void testRCP(ArrayList<Double> num, AsyncCallback<ArrayList<Double>> callback) {
		service.testRCP(num, callback);
	}
	
}
